package com.qf.micro_hotal;

import com.qf.util.BloomUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class AppRunning implements CommandLineRunner {

    @Autowired
    private BloomUtil bloomUtil;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("初始化布隆过滤器..");
        bloomUtil.initBloom("hotal_clicks_bloom", 0.001, 100000000);
    }
}
